package com.woniuxy.dao;

import com.woniuxy.pojo.MerchantCommission;
import com.woniuxy.pojo.OverOrder;
import com.woniuxy.vo.OverOrderVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface OverOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OverOrder record);

    int insertSelective(OverOrder record);

    OverOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OverOrder record);

    int updateByPrimaryKey(OverOrder record);

    List<OverOrder> findAlloverorders(OverOrderVo overOrderVo);
   @Select(" SELECT count(*) FROM over_order WHERE order_id=#{orderid}")
    Integer findOverOrder( Integer orderid);
    @Select(" SELECT * FROM over_order ")
    List<OverOrder> findAlloverOrder();

}